package com.chentongwei.facade.user.entity.io;

import com.chentongwei.common.entity.io.BaseGeetestIO;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户
 *
 * @author TongWei.Chen 2017-9-17 17:31:14
 */
@Data
public class RegistUserIO extends BaseGeetestIO implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Long id;
    /** 电子邮箱 */
    @NotNull
    @NotEmpty
    @NotBlank
    private String email;
    /** 密码 */
    @NotNull
    @NotEmpty
    @NotBlank
    private String password;
    /** 确认密码 */
    @NotNull
    @NotEmpty
    @NotBlank
    private String ensurePassword;
    /** IP地址 */
    private String ip;
}
